<?php
/*
  Template Name: index模版/默认模版
  chy
  2024-04-28 09:44:01
*/
?>

<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="/pub/css/style.css">
  <link rel="stylesheet" href="/pub/css/other.css">
  <script src="/pub/js/tailwind.3.4.3.js"></script>
  <style>
    body{
      background-color: #eee;
    }

  </style>
</head>
<body>

<?php get_header(); ?>

<h1 class="text-4xl border-b pb-4">
   case view
</h1>

<main class="my-20 mx-auto w-[70%]">

  <h1 class="text-4xl border-b pb-4">
    <?=the_title();?>
  </h1>

  <article class="mt-4">
    <?= the_content();?>
  </article>

</main>

<div>
  <h2>relate products</h2>
  <?php 
    $rows =  get_field('relative_product');
    foreach($rows as $obj){ 
  
  ?>
  <h2>
    <?=$obj->post_title;?>
  </h2>

  <div>
    some
  </div>




<?php } ?>
  
</div>


<?php get_footer(); ?>
</body>
</html>